let _app_ = getApp();
/**
 * 对象仓库 - appjs利用库
 * 2018年11月14日 15点06分
 * nico@coser.pub
 */
module.exports._init = function () {
  this._setAppjsLocker = function (key, value) {
    try {
      let _locker_ = _app_['_locker_'] || (_app_['_locker_'] = {});
      _locker_[key] = value;
      return true;
    } catch (e) {
      console.log("appjs寄存箱:ERROR PUSH", key, value);
      return false;
    }
  };
  this._getAppjsLocker = function (key) {
    try {
      let _locker_ = _app_['_locker_'];
      return _locker_[key]
    } catch (e) {
      console.log("appjs寄存箱:ERROR PULL", key);
      return false;
    }
  };
}